package sd.socket.udp.client;

import sd.socket.interfaces.IService;

public class ServiceFactoryClient {
	private static ServiceFactoryClient istance = null; //singleton
	
	public static synchronized ServiceFactoryClient getIstance() {
		return (istance == null) ? new ServiceFactoryClient() : istance;
	}
	
	public IService getService() { //factory to services
		IService service = null;
		try {
			service = new ServiceClientProxy("", 0);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return service;
	}
}
